<?php

namespace common\models;

use Yii;
use yii\base\Model;

class MobileLoginForm extends Model
{
    public $mobile;
    //public $verifyCode;
    public $mobileCode;
    public $referrer;					//来源页面地址
	public $is_allowed;

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['mobile', 'mobileCode'], 'required'],
            ['mobile', 'trim'],
            [['referrer','is_allowed'], 'safe'],		//来源页面地址
        ];
    }

    /**
     * 表单label显示字段
     */
    public function attributeLabels()
    {
        return [
            'verifyCode' => '',
        ];
    }
}
